package com.cn.ysf.newbeemall.mapper;

import com.cn.ysf.newbeemall.pojo.TbNewbeeMallCarousel;
import com.cn.ysf.newbeemall.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarouselMapper {

    /**
     * 根据轮播Id查询轮播的图片
     * @param carouselId
     * @return
     */
    TbNewbeeMallCarousel selectByPrimaryKey(Long carouselId);


    /**
     *
     * @param pageUtil
     * @return
     */
    List<TbNewbeeMallCarousel> findCarouselList(PageQueryUtil pageUtil);

    /**
     * 查询首页轮播图的数量
     * @param number
     * @return
     */
    List<TbNewbeeMallCarousel> findCarouselsByNum(@Param("number") Long number);


}
